package com.example.Opd_ISF_Android_Application.view.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.example.Opd_ISF_Android_Application.R;

/**
 * Created with IntelliJ IDEA.
 * User: Dell
 * Date: 26/03/13
 * Time: 14:08
 * To change this template use File | Settings | File Templates.
 */
public class LoginActivity extends Activity {
    private Button btnLogin;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);    //To change body of overridden methods use File | Settings | File Templates.
        setContentView(R.layout.login);

        initialiseComponents();
        addEvents();
    }

    private void initialiseComponents() {
        btnLogin = (Button) findViewById(R.id.btnLogin);
    }

    private void addEvents() {
        btnLogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent postScoreActivity = new Intent(getResources().getString(R.string.post_score_intent));
                // add data to send to activity
                //  graphActivity.putExtra();
                // graphActivity.putExtra();
                startActivity(postScoreActivity);
            }
        });
    }
}
